<template>
	<view class="page-index">
		<view class="blanceBox">
			<view class="title">余额 (元）</view>
			<view class="priceBox">
				<view class="left">{{ userInfo.money || '' }}</view>
				<view class="right" @click="jump()">申请提现</view>
			</view>
		</view>
		<view class="payList">
			<view class="payItem" v-for="(item, index) in list" :key="index">
				<view class="titleBox">
					<view class="">微信账号:{{ item.account}}</view>
					<view v-if="item.refund_money != '0.00'" style="color: #00A79A;">¥{{ item.money }}</view>
				</view>
<!-- 				<view class="itemBox">
					<view class="time">{{ item.createdate }}</view>
					<view class="price" v-if="item.type == 'recharge'" style="color: #00A79A;">+ ¥{{ item.sum_money }}</view>
					<view class="price" v-if="item.type == 'order' && item.pay_status == 1" style="color: red;">- ¥{{ item.pay_money }}</view>
					<view class="price" v-if="item.type == 'order' && item.pay_status == 2" style="color: #00A79A;">+ ¥{{ item.pay_money }}</view>
					<view class="price" v-if="item.type == 'product' && item.pay_status == 1" style="color: red;">- ¥{{ item.pay_money }}</view>
					<view class="price" v-if="item.type == 'product' && item.pay_status == 2" style="color: red;">- ¥{{ item.pay_money }}</view>
				</view> -->
			</view>
		</view>
		<view class="empty" v-if="list == ''">
			<image src="../../../static/user/empty.png" style="width: 240rpx;height: 240rpx;margin: 0 auto;"></image>
			<view class="">暂无数据</view>
		</view>
		<uni-popup ref="money" type="ceter" :mask-click="false">
			<view class="moneyBox">
				<view class="moneyItem">
					<view class="moneyTitle">微信号</view>
					<view class="moneyInput"><input type="text" placeholder="请输入微信号" class="inputs" v-model="forms.wechat_account"/></view>
				</view>
				<view class="moneyItem">
					<view class="moneyTitle">提现金额</view>
					<view class="moneyInput"><input type="number" placeholder="请输入提现金额" class="inputs" v-model="forms.money"/></view>
				</view>
				<view class="buttonBox">
					<view class="close" @click="close()">
						取消
					</view>
					<view class="submit" @click="submit()">
						确定
					</view>
				</view>
			</view>
			
		</uni-popup>
	</view>
</template>

<script src="./page.js"></script>
<style>
	page{
		background: #f5f5f5;
	}
</style>
<style scoped lang="scss">
@import 'page.scss';
</style>
